package cn.dyhack.bibiscan.util.conf;


import javax.sql.DataSource;

import org.jooq.DSLContext;
import org.jooq.SQLDialect;
import org.jooq.impl.DefaultDSLContext;
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JooqConfig {

//    @Autowired
//    @Qualifier("dataSource1")
//    private DataSource dataSource;
  /*  
    @Bean
    public DSLContext dslContext () {
        DSLContext create = new DefaultDSLContext(dataSource(), SQLDialect.MYSQL);
        return create;
    }
    
    @Bean
    public DataSource dataSource() {
        return DataSourceBuilder.create().build();
    }*/
}
